textview: improve undo grouping when overwriting
authorChristian Hergert <chergert@redhat.com>
Thu, 23 Sep 2021 02:41:06 +0000 (19:41 -0700)
committerChristian Hergert <chergert@redhat.com>
Thu, 23 Sep 2021 20:25:41 +0000 (13:25 -0700)
commit659393049e640145979c73dddd19acc1ca4b5e14
tree0f2389226bc9b98691e8f16823a03ad5020536e4
parentb578c78eff41bd2dbedf459a102e05eec78b7f7c
textview: improve undo grouping when overwriting

We want to group in more than one undo group when removing a selection
and replacing it with a new character or characters, unless we're
replacing a single character. In that case, the natural thing is to treat
it as an atomic change.
gtk/gtktextview.c